<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>商品信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="1343998932">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	<link href="/admin/js/viewer/css/viewer.min.css" rel="stylesheet" type="text/css" />
	<script src="/admin/js/viewer/js/viewer-jquery.min.js"></script>
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "1343998932";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("commodity.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建商品信息"
  			,"inport":"导入商品信息"
  			,"update":"修改商品信息"
  			,"detail":"商品信息详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		if($("#descr").size()>0){
			 //构造编辑页commodity.descr为html编辑控件
			 KE.init({
				id : "descr",
				width : "750px",height : "300px", 
				imageUploadJson : window["uploadUrl"]
			 });
			 KE.create("descr");
		 }
		 
	$("#commodityForm").form({
		"":function(){}
		,"commodity.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"commodity.name":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "商品名称不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "商品名称最大长度为32个字符";
		}
		,"commodity.title":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "标题不能为空";
			}
			if(el.value.length>64 && el.value.indexOf("[*]")==-1)
				return "标题最大长度为64个字符";
		}
		,"commodity.cSort":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"commodity.merchant":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"commodity.options":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"commodity.unit":function(el){
		}
		,"commodity.distriFee":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "配送费输入格式错误";
		}
		,"commodity.overFee":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "叠加配送费输入格式错误";
		}
		,"commodity.descr":function(el){
			if($("#descr").get(0))
			 	KE.sync("descr");		 
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "商品描述不能为空";
			}
		}
		,"commodity.shufs":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"commodity.image":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "列表图不能为空";
			}
		}
		,"commodity.saleVol":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "假销量不能为空";
			}
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"commodity.raleVol":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"commodity.price":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "价格输入格式错误";
		}
		,"commodity.cPrice":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "划线价格输入格式错误";
		}
		,"commodity.zonePrice":function(el){
		}
		,"commodity.howMuch":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "充多少不能为空";
			}
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"commodity.howMany":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "赠多少不能为空";
			}
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"commodity.cQrCode":function(el){
		}
		,"commodity.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"commodity.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"commodity.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="Commodity" id="commodityForm" name="commodityForm" target="jsoniframe" action="commodity.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写商品信息相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{commodity$id}}">
				{{commodity$id}}
			</lz:block>
			<lz:block lz:if="{{!commodity$id}}">
			<input type="hidden" value="{{lz.htm(commodity.id)}}" name="commodity.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{commodity.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.id$||commodity.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("name_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"name"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"name"))))}}
	{{lz.set("name_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$name}}
	<dl lz:if="{{name_editable||name_readonly}}" class="name  " major  ref="name">
		<dt>商品名称:</dt>
		<dd lz:if="{{name_editable}}" input="text">
			<lz:block lz:if="{{commodity$name}}">
				{{commodity$name}}
			</lz:block>
			<lz:block lz:if="{{!commodity$name}}">
		 	<input type="text" class="input narrow"   name="commodity.name" id="name"  value="{{lz.htm(commodity.name)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的商品名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{name_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="name">{{commodity.name}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.name$||commodity.name)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$name}}
	{{lz.set("title_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"title"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"title"))))}}
	{{lz.set("title_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$title}}
	<dl lz:if="{{title_editable||title_readonly}}" class="title   mider" major  ref="title">
		<dt>标　　题:</dt>
		<dd lz:if="{{title_editable}}" input="text">
			<lz:block lz:if="{{commodity$title}}">
				{{commodity$title}}
			</lz:block>
			<lz:block lz:if="{{!commodity$title}}">
		 	<input type="text" class="input mide"  maxlength="64" name="commodity.title" id="title"  value="{{lz.htm(commodity.title)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的标题</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{title_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="title">{{commodity.title}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.title$||commodity.title)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$title}}
	{{lz.set("cSort_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"cSort"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"cSort"))))}}
	{{lz.set("cSort_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$cSort}}
	<dl lz:if="{{cSort_editable||cSort_readonly}}" class="ribs cSort  " major  ref="cSort">
		<dt>排　　序:</dt>
		<dd lz:if="{{cSort_editable}}" input="number">
			<lz:block lz:if="{{commodity$cSort}}">
				{{commodity$cSort}}
			</lz:block>
			<lz:block lz:if="{{!commodity$cSort}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.cSort" id="cSort"  value="{{lz.htm(commodity.cSort)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>数值越大越排前</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{cSort_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="cSort">{{commodity.cSort}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.cSort$||commodity.cSort)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$cSort}}
	{{lz.set("merchant_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"merchant"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"merchant"))))}}
	{{lz.set("merchant_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$merchant}}
	<dl lz:if="{{merchant_editable||merchant_readonly}}" class="merchant  " major  ref="merchant">
		<dt>所属品牌:</dt>
		<dd lz:if="{{merchant_editable}}" input="query">
			<lz:block lz:if="{{commodity$merchant}}">
				{{commodity$merchant}}
			</lz:block>
			<lz:block lz:if="{{!commodity$merchant}}">
		 			<input title="请输入品牌信息品牌名称进行查询" class="combox narrow" action="/admin/business/merchant.query.do?value={param}" type="text" id="merchant" name="commodity.merchant" text="{{lz.html(commodity.merchant$||commodity.merchant)}}" value="{{lz.htm(commodity.merchant)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#merchant').val())==''){return;};window.href('/admin/business/merchant.detail.html?key='+$('#merchant').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{merchant_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="merchant">{{commodity.merchant}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=commodity.merchant}')">
			 {{lz.html(commodity.merchant$||commodity.merchant)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$merchant}}
	{{lz.set("options_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"options"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"options"))))}}
	{{lz.set("options_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$options}}
	<dl lz:if="{{options_editable||options_readonly}}" class="options   wider" major  ref="options">
		<dt>规格属性:</dt>
		<dd lz:if="{{options_editable}}" input="treegrid">
			<lz:block lz:if="{{commodity$options}}">
				{{commodity$options}}
			</lz:block>
			<lz:block lz:if="{{!commodity$options}}">
		    <textarea class="input wide grid" treegrid="[
		    	['名称',null,'text','name','']
		    ]" id="options" name="commodity.options">{{commodity.options}}</textarea> 
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{options_readonly}}">
		 	<div class=" wide">
		 		<textarea class=""  style="display:none;" id="options">{{commodity.options}}</textarea>
		 		<span>
			<textarea class="input wide grid" treegrid="[
		    	['名称',null,'text','name','']
		    ]" readonly>{{commodity.options}}</textarea>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$options}}
	{{lz.set("unit_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"unit"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"unit"))))}}
	{{lz.set("unit_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$unit}}
	<dl lz:if="{{unit_editable||unit_readonly}}" class="ribs unit  " minor  ref="unit">
		<dt>商品单位:</dt>
		<dd lz:if="{{unit_editable}}" input="query">
			<lz:block lz:if="{{commodity$unit}}">
				{{commodity$unit}}
			</lz:block>
			<lz:block lz:if="{{!commodity$unit}}">
		 			<input title="请输入商品单位名称进行查询" class="combox narrow" action="/admin/goods/unit.query.do?value={param}" type="text" id="unit" name="commodity.unit" text="{{lz.html(commodity.unit$||commodity.unit)}}" value="{{lz.htm(commodity.unit)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#unit').val())==''){return;};window.href('/admin/goods/unit.detail.html?key='+$('#unit').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{unit_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="unit">{{commodity.unit}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/goods/unit.details.html?key=commodity.unit}')">
			 {{lz.html(commodity.unit$||commodity.unit)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$unit}}
	{{lz.set("distriFee_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"distriFee"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"distriFee"))))}}
	{{lz.set("distriFee_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$distriFee}}
	<dl lz:if="{{distriFee_editable||distriFee_readonly}}" class="distriFee  " major  ref="distriFee">
		<dt>配 送 费:</dt>
		<dd lz:if="{{distriFee_editable}}" input="menoy">
			<lz:block lz:if="{{commodity$distriFee}}">
				{{commodity$distriFee}}
			</lz:block>
			<lz:block lz:if="{{!commodity$distriFee}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.distriFee" id="distriFee"  value="{{lz.htm(commodity.distriFee)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的配送费</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{distriFee_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="distriFee">{{commodity.distriFee}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.distriFee$||commodity.distriFee)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$distriFee}}
	{{lz.set("overFee_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"overFee"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"overFee"))))}}
	{{lz.set("overFee_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$overFee}}
	<dl lz:if="{{overFee_editable||overFee_readonly}}" class="overFee  " major  ref="overFee">
		<dt>叠加配送费:</dt>
		<dd lz:if="{{overFee_editable}}" input="menoy">
			<lz:block lz:if="{{commodity$overFee}}">
				{{commodity$overFee}}
			</lz:block>
			<lz:block lz:if="{{!commodity$overFee}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.overFee" id="overFee"  value="{{lz.htm(commodity.overFee)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的叠加配送费</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{overFee_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="overFee">{{commodity.overFee}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.overFee$||commodity.overFee)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$overFee}}
	{{lz.set("descr_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"descr"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"descr"))))}}
	{{lz.set("descr_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$descr}}
	<dl lz:if="{{descr_editable||descr_readonly}}" class="descr   wider" major  ref="descr">
		<dt>商品描述:</dt>
		<dd lz:if="{{descr_editable}}" input="html">
			<lz:block lz:if="{{commodity$descr}}">
				{{commodity$descr}}
			</lz:block>
			<lz:block lz:if="{{!commodity$descr}}">
		    <textarea class="input wide html"  id="descr" name="commodity.descr" style="height:300px;visibility:hidden;">{{commodity.descr}}</textarea>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的商品描述</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{descr_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(commodity.descr$||commodity.descr)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$descr}}
	{{lz.set("shufs_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"shufs"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"shufs"))))}}
	{{lz.set("shufs_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$shufs}}
	<dl lz:if="{{shufs_editable||shufs_readonly}}" class="shufs   wider" major  ref="shufs">
		<dt>轮 播 图:</dt>
		<dd lz:if="{{shufs_editable}}" input="imagelist">
			<lz:block lz:if="{{commodity$shufs}}">
				{{commodity$shufs}}
			</lz:block>
			<lz:block lz:if="{{!commodity$shufs}}">
		    <div id="shufs" class="wide input imagelist">
			<div lz:for="{{commodity.shufs.split(',')}}">{{item}}<input type="hidden" name="commodity.shufs" value="{{item}}"/><span onclick="$(this).parent().remove();">x</span></div>
			<button type="button" onclick="$.upload({type:'img',count:10,callback:function(url){if(url)$('#shufs').append('<div><a href=&quot;'+url+'&quot; target=&quot;_blank&quot;><img src=&quot;'+url+'&quot;/><input type=&quot;hidden&quot; name=&quot;commodity.shufs&quot; value=&quot;'+url+'&quot;/></a><span onclick=&quot;$(this).parent().remove();&quot;>x</span></div>');}})" class="button def-add-button">添加</button>
			</div>			
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请上传商品信息的轮播图</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{shufs_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="shufs">{{commodity.shufs}}</textarea>
		 		<span>
		 	<ul class="imager" style="list-style:none;margin:0px;padding:0px;">
				<li lz:for="{{lz.split(commodity.shufs,',')}}" style="float:left;">
					<img src="{{item}}" style="width:100px;height:80px;margin:10px;"/>
				</li>
				<div style="clear:both;"></div>
			</ul>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$shufs}}
	{{lz.set("image_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"image"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"image"))))}}
	{{lz.set("image_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$image}}
	<dl lz:if="{{image_editable||image_readonly}}" class="image   wider" major  ref="image">
		<dt>列 表 图:</dt>
		<dd lz:if="{{image_editable}}" input="image">
			<lz:block lz:if="{{commodity$image}}">
				{{commodity$image}}
			</lz:block>
			<lz:block lz:if="{{!commodity$image}}">
		    <input type="text" class="input" maxlength="128" size="32" name="commodity.image" id="image"  value="{{lz.htm(commodity.image)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#image').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#image').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#image').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请上传商品信息的列表图</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{image_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="image">{{commodity.image}}</textarea>
		 		<span>
		 	<img lz:if="{{commodity.image}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(commodity.image)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$image}}
	{{lz.set("saleVol_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"saleVol"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"saleVol"))))}}
	{{lz.set("saleVol_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$saleVol}}
	<dl lz:if="{{saleVol_editable||saleVol_readonly}}" class="saleVol  " major  ref="saleVol">
		<dt>假 销 量:</dt>
		<dd lz:if="{{saleVol_editable}}" input="number">
			<lz:block lz:if="{{commodity$saleVol}}">
				{{commodity$saleVol}}
			</lz:block>
			<lz:block lz:if="{{!commodity$saleVol}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.saleVol" id="saleVol"  value="{{lz.htm(commodity.saleVol)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的假销量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{saleVol_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="saleVol">{{commodity.saleVol}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.saleVol$||commodity.saleVol)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$saleVol}}
	{{lz.set("raleVol_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"raleVol"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"raleVol"))))}}
	{{lz.set("raleVol_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$raleVol}}
	<dl lz:if="{{raleVol_editable||raleVol_readonly}}" class="raleVol  " major  ref="raleVol">
		<dt>真实销量:</dt>
		<dd lz:if="{{raleVol_editable}}" input="number">
			<lz:block lz:if="{{commodity$raleVol}}">
				{{commodity$raleVol}}
			</lz:block>
			<lz:block lz:if="{{!commodity$raleVol}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.raleVol" id="raleVol"  value="{{lz.htm(commodity.raleVol)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入商品信息的真实销量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{raleVol_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="raleVol">{{commodity.raleVol}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.raleVol$||commodity.raleVol)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$raleVol}}
	{{lz.set("price_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"price"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"price"))))}}
	{{lz.set("price_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$price}}
	<dl lz:if="{{price_editable||price_readonly}}" class="price  " major  ref="price">
		<dt>价　　格:</dt>
		<dd lz:if="{{price_editable}}" input="menoy">
			<lz:block lz:if="{{commodity$price}}">
				{{commodity$price}}
			</lz:block>
			<lz:block lz:if="{{!commodity$price}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.price" id="price"  value="{{lz.htm(commodity.price)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的价格</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{price_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="price">{{commodity.price}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.price$||commodity.price)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$price}}
	{{lz.set("cPrice_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"cPrice"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"cPrice"))))}}
	{{lz.set("cPrice_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$cPrice}}
	<dl lz:if="{{cPrice_editable||cPrice_readonly}}" class="ribs cPrice  " minor  ref="cPrice">
		<dt>划线价格:</dt>
		<dd lz:if="{{cPrice_editable}}" input="menoy">
			<lz:block lz:if="{{commodity$cPrice}}">
				{{commodity$cPrice}}
			</lz:block>
			<lz:block lz:if="{{!commodity$cPrice}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.cPrice" id="cPrice"  value="{{lz.htm(commodity.cPrice)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>显示在商品详情页的划线价格；</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{cPrice_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="cPrice">{{commodity.cPrice}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.cPrice$||commodity.cPrice)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$cPrice}}
	{{lz.set("zonePrice_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"zonePrice"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"zonePrice"))))}}
	{{lz.set("zonePrice_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$zonePrice}}
	<dl lz:if="{{zonePrice_editable||zonePrice_readonly}}" class="ribs zonePrice   wider" minor  ref="zonePrice">
		<dt>分区价格:</dt>
		<dd lz:if="{{zonePrice_editable}}" input="grid">
			<lz:block lz:if="{{commodity$zonePrice}}">
				{{commodity$zonePrice}}
			</lz:block>
			<lz:block lz:if="{{!commodity$zonePrice}}">
		    <textarea class="input wide grid" grid="[
		    	['所在地区',null,'tree','area','/admin/setting/tbsecondcity.query.do?']
		    	,['价格',null,'menoy','price','']
		    ]" id="zonePrice" name="commodity.zonePrice">{{commodity.zonePrice}}</textarea> 
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{zonePrice_readonly}}">
		 	<div class=" wide">
		 		<textarea class=""  style="display:none;" id="zonePrice">{{commodity.zonePrice}}</textarea>
		 		<span>
			<textarea class="input wide grid" grid="[
		    	['所在地区',null,'tree','area','/admin/setting/tbsecondcity.query.do?']
		    	,['价格',null,'menoy','price','']
		    ]" readonly>{{commodity.zonePrice}}</textarea>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$zonePrice}}
	{{lz.set("howMuch_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"howMuch"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"howMuch"))))}}
	{{lz.set("howMuch_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$howMuch}}
	<dl lz:if="{{howMuch_editable||howMuch_readonly}}" class="howMuch  " major  ref="howMuch">
		<dt>充 多 少:</dt>
		<dd lz:if="{{howMuch_editable}}" input="number">
			<lz:block lz:if="{{commodity$howMuch}}">
				{{commodity$howMuch}}
			</lz:block>
			<lz:block lz:if="{{!commodity$howMuch}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.howMuch" id="howMuch"  value="{{lz.htm(commodity.howMuch)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的充多少</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{howMuch_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="howMuch">{{commodity.howMuch}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.howMuch$||commodity.howMuch)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$howMuch}}
	{{lz.set("howMany_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"howMany"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"howMany"))))}}
	{{lz.set("howMany_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$howMany}}
	<dl lz:if="{{howMany_editable||howMany_readonly}}" class="howMany  " major  ref="howMany">
		<dt>赠 多 少:</dt>
		<dd lz:if="{{howMany_editable}}" input="number">
			<lz:block lz:if="{{commodity$howMany}}">
				{{commodity$howMany}}
			</lz:block>
			<lz:block lz:if="{{!commodity$howMany}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="commodity.howMany" id="howMany"  value="{{lz.htm(commodity.howMany)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入商品信息的赠多少</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{howMany_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="howMany">{{commodity.howMany}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.howMany$||commodity.howMany)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$howMany}}
	{{lz.set("cQrCode_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"cQrCode"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"cQrCode"))))}}
	{{lz.set("cQrCode_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$cQrCode}}
	<dl lz:if="{{cQrCode_editable||cQrCode_readonly}}" class="cQrCode   wider" major  ref="cQrCode">
		<dt>二 维 码:</dt>
		<dd lz:if="{{cQrCode_editable}}" input="image">
			<lz:block lz:if="{{commodity$cQrCode}}">
				{{commodity$cQrCode}}
			</lz:block>
			<lz:block lz:if="{{!commodity$cQrCode}}">
		    <input type="text" class="input" maxlength="128" size="32" name="commodity.cQrCode" id="cQrCode"  value="{{lz.htm(commodity.cQrCode)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#cQrCode').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#cQrCode').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#cQrCode').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 
	 	 <em>请上传商品信息的二维码</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{cQrCode_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="cQrCode">{{commodity.cQrCode}}</textarea>
		 		<span>
		 	<img lz:if="{{commodity.cQrCode}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(commodity.cQrCode)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$cQrCode}}
	{{lz.set("updateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"updateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{commodity$updateTime}}">
				{{commodity$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!commodity$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="commodity.updateTime" id="updateTime"  value="{{commodity.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择商品信息的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{commodity.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.updateTime$||commodity.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{commodity$addTime}}">
				{{commodity$addTime}}
			</lz:block>
			<lz:block lz:if="{{!commodity$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="commodity.addTime" id="addTime"  value="{{commodity.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择商品信息的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{commodity.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.addTime$||commodity.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{commodity$status}}">
				{{commodity$status}}
			</lz:block>
			<lz:block lz:if="{{!commodity$status}}">
		 	<select class="narrow" id="status" name="commodity.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{commodity.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{commodity.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择商品信息的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{commodity.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(commodity.status$||commodity.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{commodity.id}}" name="commodity.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/goods/commodity.edit.html?edittype=update&id={{commodity.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/goods/commodity.edit.html",document.title,"/admin//images/icons/20088256422681277805.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/goods/commodity.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


	$(function(){
		$('.imager').viewer({
			movable:true,navbar:false
		});
	});
</script>
</html>